<?php


namespace app\api\validate;

/**
 * Class BaseValiate
 * @package app\api\validate
 * @desc 通用验证器定义
 */
class BaseValiate
{
    // 定义验证规则
    public static $ruleArr = [
        'getUser' => [
            'username' => 'require',
            'pwd' => 'require',
        ],// 方法名对应的规则
    ];
    // 定义错误信息
    public static $messageArr = [
        'getUser' => [
            'username.require' => '用户名必须填写',
            'pwd.require' => '密码必须填写',
        ],// 方法名对应的错误信息
    ];

}